<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>md5 test</title>
  <link href="../css/el-upload.css" type="text/css" rel="stylesheet"/>
</head>
<script src="http://unpkg.com/vue/dist/vue.js"></script>
<script src="http://unpkg.com/element-ui@2.15.7/lib/index.js"></script>
<body>
<h2>md5 test</h2>

  <div id="app">
    <el-upload
      class="avatar-uploader"
      action="https://jsonplaceholder.typicode.com/posts/"
      :show-file-list="false"
      :on-success="handleAvatarSuccess"
      :before-upload="beforeAvatarUpload"
    >
      <img v-if="imageUrl" :src="imageUrl" class="avatar">
      <i v-else class="el-icon-plus avatar-uploader-icon"></i>
    </el-upload>
  </div>
</body>
<script src="../lib/md5-js.js"></script>
<script src="../lib/spark.js"></script>
<script src="../utils/base.js"></script>
<script src="./index.js"></script>
</html>
